<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 200px;
            height: 200px;
            background-color: lightblue;
        }
    </style>
</head>

<body>
    <div></div>
    <script>
        // 三个事件的触发顺序：touchstart ---> touchmove  ---->touchend


        var div = document.querySelector('div');

        div.addEventListener('touchstart', function(){
            console.log('触摸开始')
        })


        div.addEventListener('touchmove', function(){
            console.log('触摸移动')
        })

        div.addEventListener('touchend', function(){
            console.log('触摸结束')
        })
    </script>
</body>

</html>